<%% html = capture do %>
  <h3 class="title"><%%= l(:label_<%= singular_table_name %>_new) %></h3>
  <%%= render partial: "form" %>
<%% end %>

$("#ajax-modal").html("<%%= j html %>").find(".box").css("z-index", "auto");
showModal("ajax-modal", "600px");